<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>你好，总账号</title>
  <script src="https://cdn.jsdelivr.net/npm/babel-polyfill/dist/polyfill.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/jquery"></script>
  <script src="__PUBLIC__/script/layer/layer.js"></script>
  <script src="__PUBLIC__/node_modules/datatables/media/js/jquery.dataTables.min.js"></script>
  <script src="__PUBLIC__/script/bootstrap-treeview-master/dist/bootstrap-treeview.min.js"></script>
  <link rel="stylesheet" href="__PUBLIC__/style/base.css">
  <link rel="stylesheet" href="__PUBLIC__/script/bootstrap-treeview-master/dist/bootstrap-treeview.min.css">
  <link rel="stylesheet" href="__PUBLIC__/node_modules/bootstrap/dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="__PUBLIC__/style/manage.css">
</head>
<body>
  <div class="container-fluid">
    <div class="row">
      <header class="col-xs-6 col-md-2 account_name"><img class='img-responsive' src="__PUBLIC__/images/logo_long.jpg" alt=""></header>
      <div class="col-xs-12 col-md-12">
        <div class="row">

          <!-- 左侧栏 -->
          <div class="col-md-2 manage_nav_box">
            <iframe src="{:U('nav_qudao')}?local=ziqudao_m" frameborder="0" width="100%" style="height:45rem;"></iframe>
            <!-- 账号选项 -->
            <div class="account_option">
              <a href="{:U('index/update_passwd')}" class="pass_mod">修改密码</a>
              <a href="{:U('index/loginout')}" class="sign_out">退出登录</a>
            </div>
            <!-- end 账号选型 -->
          </div>
          <!-- end 左侧栏 -->

          <!-- 右主体  -->
          <div class="col-md-10 col-md-10 messageBox">

            <!-- 账号主体显示 -->
            <!-- <div class="account_name">公众号名称</div> -->
            <!-- end 账号主体显示 -->


            <!-- begin 筛选区域 -->
            <div class="search_form col-xs-12">
              <div class="seach_text_input_box">
                <input type="text">
                <input type="submit" value="搜索">
              </div>
              <div class="tag_search">
                <span class="tag first active"><a href="__PUBLIC__/manage_diqu_qudao.html">全部渠道</a></span>
                <span class="tag"><a href="__PUBLIC__/manage_diqu_qudao.html?yinhang">银行</a></span>
                <span class="tag"><a href="__PUBLIC__/manage_diqu_qudao.html?xiaofei">消费金融</a></span>
                <span class="tag last"><a href="__PUBLIC__/manage_diqu_qudao.html?others">其他</a></span>
              </div>
            </div>
            <!-- end 筛选区域 -->

            <!-- begin  授权产品列表列表 -->
            <header>所有渠道列表</header>
            <!-- end 表头 -->

            <table class="messageBoxContent table table-striped table-bordered" id="main_table">
                <thead>
                  <tr>
                    <th class="authNo">序号</th>
                    <th class="authSheng">省</th>
                    <th class="authShi">市</th>
                    <th class="authQu">区</th>
                    <th class="authDate">加入日期</th>
                    <th class="authQuydaoType">渠道类型</th>
                    <th class="authQudaoName">渠道名称</th>
                    <th class="authPerson">对接人</th>
                    <th class="authPhone">电话</th>
                    <th class="authSetting">多选 <input type="checkbox" name="test" id="fuck" form='not_submit'></th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <th class="authNo">1.</th>
                    <th class="authSheng">广东省</th>
                    <th class="authShi">深圳市</th>
                    <th class="authQu">福田区</th>
                    <th class="authDate">20171010</th>
                    <th class="authQuydaoType">银行</th>
                    <th class="authQudaoName">平安银行</th>
                    <th class="authPerson">张大强</th>
                    <th class="authPhone">15617715148</th>
                    <th class="authSetting"><input type="checkbox" name="13788888888" id="diqu_2" form="delete_form"></th>
                  </tr>
                  <tr>
                    <th class="authNo">2.</th>
                    <th class="authSheng">广东省</th>
                    <th class="authShi">深圳市</th>
                    <th class="authQu">福田区</th>
                    <th class="authDate">20171010</th>
                    <th class="authQuydaoType">银行</th>
                    <th class="authQudaoName">平安银行</th>
                    <th class="authPerson">张大强</th>
                    <th class="authPhone">15617715148</th>
                    <th class="authSetting"><input type="checkbox" name="13788888888" id="diqu_2" form="delete_form"></th>
                  </tr>
                  <tr>
                    <th class="authNo">3.</th>
                    <th class="authSheng">广东省</th>
                    <th class="authShi">深圳市</th>
                    <th class="authQu">福田区</th>
                    <th class="authDate">20171010</th>
                    <th class="authQuydaoType">银行</th>
                    <th class="authQudaoName">平安银行</th>
                    <th class="authPerson">张大强</th>
                    <th class="authPhone">15617715148</th>
                    <th class="authSetting"><input type="checkbox" name="13788888888" id="diqu_2" form="delete_form"></th>
                  </tr>
                </tbody>
              </table>
            <!-- end 授权产品列表列表 -->

            <!-- begin 删除选项（表单） -->
            <div class="form">
              <form autocomplete="off" action="delete" id="delete_form">
                <input type="submit" value="删除所选" class="delete_all">
                <input type="reset" value="取消选择" class="reset_all">
              </form>
            </div>
            <!-- end 删除选项（表单） -->

            <!-- begin 分页 -->
            <div class="authPage">
                    <!-- 页面指示器 -->
                    <div class="pages">24/425</div>
                    <!-- 分页列表 -->
                    <!-- <span class="number">...</span> -->
                    <div class="pageList">
                      <a href='__PUBLIC__/manage.html?pre'><span class="pre"><img src="__PUBLIC__/images/dengluye/u84.png" alt="u84" title="上一页"></span></a>
                      <a href='__PUBLIC__/manage.html?1'><span class="number">1</span></a>
                      <span class="number">...</span>
                      <a href='__PUBLIC__/manage.html?12'><span class="number">12</span></a>
                      <a href='__PUBLIC__/manage.html?next'><span class="next"><img src="__PUBLIC__/images/dengluye/u86.png" alt="u86" title="后一页"></span></a>
                    </div>
            </div>
            <!-- end 分页 -->

          </div>
          <!-- end 右主体 -->

        </div>
      </div>
    </div>
  </div>
  <script>
    $('#add_local_frame').on('click', function(){
      layer.open({
        type: 2,
        title: 'layer mobile页',
        area: ['320px', '440px'],
        maxmin: true,
        content: '__PUBLIC__/add_qudao.html' //iframe的url
      })
    })
    $(document).ready(function() {
      var proList = $('#main_table').DataTable({
        "paging": false,
        "info": false,
        "searching": false
      })
      $('.messageBoxContent thead .authSetting').on('click', function (event) {
        event.stopPropagation();Array.from($('.messageBoxContent input[type=\'checkbox\']')).forEach(function(val,index){val.checked = !val.checked})
      })
    })
    window.addEventListener('message', fromNav, false)
    function fromNav(event) {
      console.log(event.data.url)
      if (event.data.url.length && event.data.url.length > 1) {
        self.location = event.data.url
      }
    }
  </script>
</body>
</html>
